package org.pro.core.social;

import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionSignUp;
import org.springframework.stereotype.Component;

/**
 * 第三方用户登录时，若是不存在此用户则根据其名字自动创建一个系统用户
 * @author luoqiz
 *
 */
@Component("connectionSignUp")
public class AutoCreateUserConnectionSingUp implements ConnectionSignUp{

	@Override
	public String execute(Connection<?> connection) {
		return connection.getDisplayName();
	}

}
